import { Body, Controller, Get, Post } from "@nestjs/common";
import { ExportService } from "./export.service";

@Controller("export")
export class ExportController {
  constructor(private readonly exportService: ExportService) {}

  @Post("/askAi")
  async askAi(@Body() body: any) {
    const { content } = body;
    let result = await this.exportService.askAi(content);
    return { status: 200, result };
  }

  @Get("getAi")
  getAi() {
    return "hello";
  }
}
